package com.joint.cloud.common.utils;

/**
 * @author: zhanglc
 * @date: 2020/1/3 14:49
 */
public class UnitUtil {

    public static final long B = 1;

    public static final long KB = B * 1024;

    public static final long MB = KB * 1024;

    public static final long GB = MB * 1024;

    public static final long TB = GB * 1024;

    public static final String B_STRING = "B";

    public static final String KB_STRING = "KB";

    public static final String MB_STRING = "MB";

    public static final String GB_STRING = "GB";

    public static final String CORE_STRING = "Core";

    public static final double ONE = 1.0d;

    public static final long SECOND = 1000;

    public static final long MINUTE = 60 * SECOND;

    public static final long HOUR = 60 * MINUTE;

    public static final long DAY = 24 * HOUR;

}
